package gui 
{
	import org.flixel.*;
	import states.*;

	public class DriverStationGUI extends FlxSprite 
	{
		[Embed(source = "../../art/driver_station_background.png")] private var gfxSprite:Class;
		
		private var txtScore:FlxText;
		private var txtDiscs:FlxText;
		
		public function DriverStationGUI() 
		{
			super(0, FlxG.height - 80, gfxSprite);
			
			txtScore = new FlxText(20, FlxG.height - 75, 400);
			txtScore.setFormat("Score: ", 8, 0xFFFFFFFF);
			txtDiscs = new FlxText(20, FlxG.height - 65, 400);
			txtDiscs.setFormat("Discs", 12, 0xFFFFFFFF);
		}
		
		override public function update():void {
			txtScore.text = "Score: " + PlayState.player.score;
			txtDiscs.text = "Discs Held: " + PlayState.player.discsHeld;
			
			super.update();
		}
		
	}

}